<!DOCTYPE html>
<html>
  <head>
    <title>申请入驻</title>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
      <link rel="stylesheet" href="${s.base}/mobile/base/css/weui.min.css">
      <link rel="stylesheet" href="${s.base}/mobile/base/css/jquery-weui.css">
      <link rel="stylesheet" href="${s.base}/mobile/wechat/css/base.css">
      <link rel="stylesheet" href="${s.base}/mobile/wechat/css/component.css">
      <link rel="stylesheet" type="text/css" href="${s.base}/mobile/base/lib/DateSelector/DateSelector.css?rev=@@hash"/>
  </head>
  <body>
  <div class="xyg-comp-list-select" style="margin-top: 0.5rem;">
    <div class="xyg-comp-list-select-item" style="height: 6rem;">
      <textarea style="width: 100%; height:5rem;border: 0px; margin-top: 0.5rem; line-height: 1rem;color: #999999;" id="applyReason" <#if hostSettled?? && hostSettled.checkStatus!='3'>readonly</#if> placeholder="入驻申请理由...">${hostSettled.applyReason}</textarea>
    </div>
    <#if hostSettled??>
      <div class="xyg-comp-list-select-item">
        <div class="xyg-comp-list-select-item-title">
          审核状态
        </div>
        <div class="xyg-comp-list-select-item-content">
          <#if hostSettled.checkStatus='1'>
            <input type="text" value="待审核" readonly />
            <#elseif hostSettled.checkStatus='2'>
              <input type="text" value="审核通过" readonly />
              <#elseif hostSettled.checkStatus='3'>
                <input type="text" value="审核未通过" readonly />
          </#if>
        </div>
      </div>
        <#if hostSettled.checkStatus='3'>
          <div class="xyg-comp-list-select-item">
            <div class="xyg-comp-list-select-item-title">
              原因
            </div>
            <div class="xyg-comp-list-select-item-content">
              <input type="text" value="${hostSettled.checkResult}" readonly />
            </div>
          </div>
        </#if>
    </#if>
  </div>
  <#if !(hostSettled??)>
  <div class="xyg-bottom">
      <a href="javascript:submit();" class="weui-btn weui-btn_warn">提交申请</a>
  </div>
  </#if>
  <style type="text/css">
	  html,body{background:#f5f5f5;}
  	.xyg-comp-list-select{width:92%; margin: 0px 4%; height:auto;}
	  .xyg-comp-list-select .xyg-comp-pic{width:90%; padding:0.5rem 5%; background: #FFF;}
	  .xyg-comp-list-select .xyg-comp-pic-title{width:100%;line-height:1.5rem; padding-bottom: 0.5rem; font-size: 0.8rem; color:#000; letter-spacing: 0.01rem; }
	  .xyg-comp-list-select .xyg-comp-pic-title-left{width: 50%; height: 6rem; float: left;}
	   .xyg-comp-list-select .xyg-comp-pic-title-left img{width: 100%; height: 6rem;}
	   .xyg-comp-list-select .xyg-comp-pic-title-right{width: 50%; height: 6rem; float: left;}
	  
	.xyg-comp-list-select-item{width:90%; padding:0px 5%; line-height:2.2rem; height:2.2rem;font-size: 0.8rem; color:#000; letter-spacing: 0.01rem; background: #FFF; border: 0.001rem solid #f5f5f5;}
	  
 .xyg-comp-list-select-item textarea::-webkit-input-placeholder {
  /* WebKit browsers */
  color: #999999;
}
 .xyg-comp-list-select-item textarea:-moz-placeholder {
  /* Mozilla Firefox 4 to 18 */
  color: #999999;
}
 .xyg-comp-list-select-item textarea::-moz-placeholder {
  /* Mozilla Firefox 19+ */
  color: #999999;
}
 .xyg-comp-list-select-item textarea::-ms-input-placeholder {
  /* Internet Explorer 10+ */
	color: #999999;}
 

	  .xyg-comp-list-select-item input::-webkit-input-placeholder {color: #999999;}
	.xyg-comp-list-select-item .xyg-comp-list-select-item-icon{width:70%; line-height:2rem; text-align:right; float:left; color: #999999;}
	.xyg-comp-list-select-item .xyg-comp-list-select-item-title{width:30%; height:2rem; text-align:left; float:left;}
	.xyg-comp-list-select-item .xyg-comp-list-select-item-content{width:70%; height:2rem; text-align:left; float:left;}
	.xyg-comp-list-select-item .xyg-comp-list-select-item-content input{width:100%; height:2rem; line-height:2rem;background-color:transparent;border:0; text-align:right;}
	.xyg-comp-xy{height:2rem; line-height:2rem; width:width:93%; margin:0px 2% 0px 5%;}
	.xyg-bottom{width:90%; height:auto;  margin:1.5rem 5%;}
  </style>
  </body>
  <script src="https://res.wx.qq.com/open/js/jweixin-1.3.2.js"></script>
  <script src="${s.base}/mobile/base/js/jquery-2.1.4.js" type="text/javascript" charset="utf-8"></script>
  <script src="${s.base}/mobile/base/js/jquery-weui.js" type="text/javascript" charset="utf-8"></script>
  <script src="${s.base}/mobile/base/js/swiper.js" type="text/javascript" charset="utf-8"></script>
  <script src="${s.base}/mobile/base/js/component.js?12323434323232323232" type="text/javascript" charset="utf-8"></script>
  <script src="${s.base}/mobile/wechat/fonts/iconfont.js"></script>
  <script src="${s.base}/mobile/wechat/js/window_port.js"></script>
  <script src="${s.base}/mobile/wechat/js/base.js"></script>
  <script type="text/javascript">
      var memberId='${memberId}';
      var itemId='${itemId}';
      function submit() {
          var applyReason = $("#applyReason").val();
          if(applyReason == null || applyReason == "") {
              $.toast("请输入入驻申请理由", "text");
              return false;
          }
          $.fn.postBase("/weChat/settledSave",{'applyReason':applyReason,'itemId':itemId,'memberId':memberId},function (result) {
              if (result.code == 0) {
                  //操作成功
                  $.alert("您的申请提交成功，我们将会及时处理！",function () {
                      goXqPage(memberId,itemId);
                  });
              } else {
                  //操作失败
                  if("请先绑定信息"==result.msg){
                      $.alert("请先绑定信息，再来提交入驻申请！",function () {
                          goWdmpPage(memberId);
                      });
                  }else{
                      $.toast(result.msg,"text");
                  }
              }

          });
      }
  </script>
</html>

